export default {
  footer: state => state.app.footer,
  homeActive: state => state.app.homeActive,
  home: state => state.app.home,
  token: state => state.app.token,
  isLogin: state => !!state.app.token,
  backgroundColor: state => state.app.backgroundColor,
  userInfo: state => state.app.userInfo || {},
  storeItems: state => state.app.storeItems || {},
  goName: state => state.app.goName,
  huzi: state => state.app.huzi,
  doneTodos: state => {
    return state.todos.length;
  },
  doneTodosCount: (state, getters) => {
    return getters.doneTodos.length;
  }
};
